package cn.group01.git.service;

import cn.group01.git.common.ResponseResult;
import cn.group01.git.dto.UserPageDTO;
import cn.group01.git.entity.User;
import cn.group01.git.form.LoginForm;

import javax.servlet.http.HttpSession;
/**
 * @description:
 * @author: 吴凡荣
 * @date: 2023/7/13 11:14
 **/
public interface UserService {

    ResponseResult register(User user);

    ResponseResult login(LoginForm loginForm, HttpSession session);


    User getByUsername(String username);

    ResponseResult edit(User user);

    ResponseResult add(User user);

    ResponseResult batchDelete(Integer[] ids);

    ResponseResult getPage(UserPageDTO userPageDTO);

    ResponseResult changePwd(String oldPwd, String newPassword, String username);
}
